/**
 *  Copyright (C) 2012 by Development Solutions, Software (DSS)
 *  Released under the terms of the GNU General Public license version 3 or later
 */
package org.dss.gil.controller;

import org.apache.log4j.Logger;
import org.dss.gil.service.InitializationService;

/** 
 * This is the Main App Class. Its function is to load all the configurations 
 * and initialize the view.
 * 
 *  @author  Fernando Gil <lobho.gil@gmail.com>
 *  @since   September 2012
 *  @version 1.1
 */
public class GilMain {
  
    private static Logger logger = Logger.getLogger(GilMain.class.getName());
    private static InitializationService init = InitializationService.getInstance();
    
    public static void main(String[] args) {
        try{
            init.initLogger();
            init.loadUserConfigurations();
            init.initConfigurations();
            init.loadLanguageBundle();
            init.loadImages();
            init.loadDecimalFormatter();
            init.loadIde();
        }catch(Exception ex){
            logger.fatal(ex.getMessage());
        }
    }

}
